package com.lyx.server.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyx.server.entity.UserLog;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * ⽤户⽇志表(UserLog)表数据库访问层
 *
 * @author McMeloxD
 * @since 2024-08-12 19:08:26
 */
public interface UserLogDao extends BaseMapper<UserLog> {
    @Select("select * from t_user_log where type=#{type} and uid=#{uid} order by create_time desc limit 1")
    UserLog queryLastByType(@Param("type")String type,@Param("uid") Integer uid);
}

